<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>ECharts</title>
    <script src="echarts.min.js"></script>
    <script src="china.js"></script>
</head>
 <body>
    <div id="main" style="width: 600px;height: 400px;"></div>
    <script type="text/javascript">
        var china = echarts.init(document.getElementById('main'));

        var option = {
            geo:{
                map:'china'
            },
            series:[{
                name:'地图',
                type:'map',
                geoIndex:0,
            }]
        };
        china.setOption(option);
    </script>
 </body>
</html>